package com.example.springbootlearn.annotation;

import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author caiji Mr. Li
 * @date 2019/10/16 18:08
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(ServerImportSelector.class) //导入HelloWorldConfiguration
public @interface EnableServer {

    /**
     * 设置服务器类型
     *
     * @return non-null
     */
    Server.Type type();
}
